﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Higer.SharePoint.HigerWebService.HigerCls
{
   public class HigerDbBlock
   {
      /// <summary>
      /// 获取对应数据库的连接字串
      /// </summary>
      /// <param name="strWebConfig">数据库名称</param>
      /// <returns></returns>
      public static string GetDbCnString(string strWebConfig)
      {
         return ConfigurationManager.ConnectionStrings[strWebConfig].ConnectionString;
      }

      public static string GetAppSetting(string strAppKey)
      {
         return ConfigurationManager.AppSettings[strAppKey];
      }
   }
}
